<?php
namespace RTSCraft\MainBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\UniqueConstraint;
use Doctrine\ORM\Mapping\OrderBy;

/**
 * @ORM\Entity
 * @ORM\Table(name="Sheets")
 */
class Sheets
{
  /**
   * @ORM\Id
   * @ORM\Column(type="integer")
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;

  /**
   * @ORM\Column(type="integer")
   */
  protected $value;

  /**
   * @ORM\ManyToMany(targetEntity="Statistics")
   **/
  protected $statistics;

  /**
   * Get id
   *
   * @return integer 
   */
  public function getId()
  {
    return $this->id;
  }
  /**
   * Get Statistics
   *
   * @return Statistics[]
   */
  public function getStatistics()
  {
    return $this->statistics;
  }

    public function __construct()
    {
        $this->statistics = new \Doctrine\Common\Collections\ArrayCollection();
    }
    

    /**
     * Add sheets
     *
     * @param RTSCraft\MainBundle\Entity\Statistics $statistics
     */
    public function addStatistics(\RTSCraft\MainBundle\Entity\Statistics $statistics)
    {
        $this->statistics[] = $statistics;
    }

    /**
     * Set value
     *
     * @param integer $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return integer 
     */
    public function getValue()
    {
        return $this->value;
    }
}